<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"   
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      >
    
    
	    <ui:composition>
		<h:form>
		<p:tabMenu rendered="true" activeIndex="#{masterBean.index}">
			<p:menuitem value="Overview" action="#{masterBean.redirect(0)}" icon="ui-icon-star"  update="@all"/>
			<p:menuitem value="Living Room" action="#{masterBean.redirect(1)}" icon="ui-icon-wrench"  update="@all"/>
			<p:menuitem value="Kika Room" action="#{masterBean.redirect(2)}" icon="ui-icon-wrench"  update="@all"/>
			<p:menuitem value="Mafalda Room" action="#{masterBean.redirect(3)}" icon="ui-icon-wrench"  update="@all"/>
			<p:menuitem value="Parents Room" action="#{masterBean.redirect(4)}" icon="ui-icon-wrench"  update="@all"/>
		</p:tabMenu>
 		</h:form>
	    </ui:composition>
    
</html>